package core;

import spatialindex.spatialindex.Point;
import util.Constants;

/**
 * super class for Junction and StartPoint
 * 
 * @author Xiaohui
 * 
 */
public class CheckPoint extends Point implements Constants {
	private int id;

	public CheckPoint(int id, double[] pCoords) {
		super(pCoords);
		this.id = id;
	}

	public CheckPoint(int id, final Point pt) {
		super(pt);
		this.id = id;
	}

	public String getData() {
		return id + "";
	}

	public int getId() {
		return id;
	}
}